package com.qingxin.ui.bean;

import java.util.ArrayList;
import java.util.List;

public class UIToolbar {

	private String hidein;
	private List<UIOperItem> operItems = new ArrayList<>();
	
	public UIToolbar() {
	}
	
	public UIToolbar(String hidein) {
		this.hidein = hidein;
	}

	public UIToolbar copy(){
		UIToolbar target = new UIToolbar(hidein);

		for(int i=0, n=operItems.size(); i<n; i++){
			target.addOperItem(operItems.get(i));
		}
		
		return target;
	}
	
	public String getHidein() {
		return hidein;
	}
	public void setHidein(String hidein) {
		this.hidein = hidein;
	}
	public void addOperItem(UIOperItem operItem){
		operItems.add(operItem);
	}
	public List<UIOperItem> getOperItems() {
		return operItems;
	}
	public void setOperItems(List<UIOperItem> operItems) {
		this.operItems = operItems;
	}
	
}
